﻿import QtQuick 2.0
import Modules 1.0
import QtQuick.Layouts 1.12
import QtQuick.Controls 2.12

StackView{
    id: homestack
    initialItem: homeview
    Component {
        id: homeview
        Rectangle{
            anchors.fill: parent
            BaseNavigationBar{
                id: navigationBar
                title: qsTr("房间实测")

                Image{
                    id: searchimage
                    source: "../../images/home_page_slices/measure_search.png"
                    width: 20;height: 20
                    anchors.verticalCenter: parent.verticalCenter
                    anchors.right: parent.right
                    anchors.rightMargin: 20

                    MouseArea{
                        anchors.fill: parent
                        onClicked: homestack.push(searchview)
                    }
                }
            }
        }
    }

    SearchView{id: searchview}
}
